﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:res="clr-namespace:WindowsPhoneToolbox"
	mc:Ignorable="d" Focusable="True"
	x:Class="WindowsPhoneToolbox.Controls.AppPhoneControl"
	x:Name="AppPhone"
	d:DesignWidth="223" d:DesignHeight="80">
	<UserControl.Resources>
		<Storyboard x:Key="ShowAction">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" Storyboard.TargetName="stackPanelAction">
				<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="22"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="HideAction">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" Storyboard.TargetName="stackPanelAction">
				<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>
	<UserControl.Triggers>
		<EventTrigger RoutedEvent="MouseEnter" SourceName="StackAppinst">
			<BeginStoryboard Storyboard="{StaticResource ShowAction}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="MouseLeave" SourceName="MainStack">
			<BeginStoryboard x:Name="HideAction_BeginStoryboard" Storyboard="{StaticResource HideAction}"/>
		</EventTrigger>
	</UserControl.Triggers>
	<Button x:Name="MainStack" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Background="{x:Null}" BorderBrush="{x:Null}" BorderThickness="0" Focusable="False">
		<Grid>
			<StackPanel x:Name="StackAppinst" Orientation="Vertical" Margin="0,5,0,0">
				<TextBlock x:Name="TxtAppName" FontSize="12" VerticalAlignment="Center" />
                <TextBlock x:Name="TxtDebugMode" FontSize="10" Margin="10,0,0,5" Foreground="Red" Visibility="Collapsed" />
                <TextBlock x:Name="TxtAppGuid" FontSize="9" Margin="10,0,0,5" FontStyle="Italic"/>
				<StackPanel x:Name="stackPanelAction" Orientation="Horizontal" Height="0">
					<Button x:Name="BntLaunch" Padding="1" Margin="0,0,5,0" Click="BntLaunchClick" Background="{x:Null}" BorderBrush="{x:Null}" BorderThickness="0" ToolTip="{Binding Source={x:Static res:Resources.XLaunchApplication}}" Focusable="False">
						<Image Source="/WindowsPhoneToolbox;component/Resources/Launch.ico" Width="16" Height="16"/>
					</Button>
					<Button x:Name="BntRename" Padding="1" Margin="0,0,5,0" Click="BntRenameClick" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}" ToolTip="{Binding Source={x:Static res:Resources.XRenameApplication}}" Focusable="False">
						<Image Source="/WindowsPhoneToolbox;component/Resources/rename.ico" Width="16" Height="16" />
					</Button>
					<Button x:Name="BntExplorer" Padding="1" Margin="0,0,5,0" Click="BntExplorerClick" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}" ToolTip="{Binding Source={x:Static res:Resources.XIsolateStotageExplorer}}" Focusable="False">
						<Image Source="/WindowsPhoneToolbox;component/Resources/IsoFiles.ico" Width="16" Height="16"/>
					</Button>
					<Button x:Name="BntRemove" Padding="1" Margin="0,0,5,0" Click="BntRemoveClick" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}" ToolTip="{Binding Source={x:Static res:Resources.XUninstallApplication}}" Focusable="False">
						<Image Source="/WindowsPhoneToolbox;component/Resources/remove.ico" Width="16" Height="16" />
					</Button>
				</StackPanel>
			</StackPanel>
			<Button x:Name="BntApp" FontSize="12" Click="BntCoreLaunchClick" Background="{x:Null}" BorderBrush="{x:Null}" BorderThickness="0" ToolTip="{Binding Source={x:Static res:Resources.XClickLaunch}}" HorizontalContentAlignment="Left" Focusable="False"/>
		</Grid>
	</Button>
</UserControl>